home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 1
/
Cream of the Crop 1.iso
/
BUSINESS
/
SALE24.ARJ
/
L2OPEN.PRG
< prev
next >
Wrap
Text File
|
1992-06-01
|
652b
|
24 lines
* l2open.prg
* opens a single database
* filename = database file
* workarea = area in which to open the database
* wantexcl = .t. if want exclusive use
** sample usage = IF NOT l2open("customer",select(1))
** DO l2msg WITH "Sorry. Customer file "+;
** "could not be opened.","Ok"
** CLOSE DATA
** RETURN
** ENDIF
PARAMETERS filename,workarea,wantexcl
IF wantexcl
kerror=0 && error trap will change it if USE fails
USE (filename) IN (workarea) EXCLUSIVE
ELSE
kerror=0
USE (filename) IN (workarea)
ENDIF
RETURN kerror=0
* EOP l2open